package com.lzy.concertticket;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@ServletComponentScan   //  扫描servlet组件
@MapperScan(basePackages = "com.lzy.concertticket.dao.mapper")
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableScheduling   //  开启定时任务
@SpringBootApplication
public class ConcertTicketApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConcertTicketApplication.class, args);
    }

}
